<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BodyBean
 *
 * @author jhonny
 */
class BodyTag {
    protected $header;
    private $center;
    private $footer;
    public function __construct() {
    }
    public function getHeader() {
        return $this->header;
    }

    public function setHeader($header) {
        $this->header = $header;
    }

    public function getCenter() {
        return $this->center;
    }

    public function setCenter($center) {
        $this->center = $center;
    }

    public function getFooter() {
        return $this->footer;
    }

    public function setFooter($footer) {
        $this->footer = $footer;
    }


    public function getHeaderToString(){
        $value='';
        if($this->getHeader()!=null){
            $value=$this->getHeader()->toString();
        }
        return $value;
    }
    public function getCenterToString(){
        $value='';
        if($this->getCenter()!=null){
            $value=$this->getCenter()->toString();
        }
        return $value;
    }
    public function getFooterToString(){
        $value='';
        if($this->getFooter()!=null){
            $value=$this->getFooter()->toString();
        }
        return $value;
    }
    public function toString() {
        $strValue = '';
        //style="text-align:center;"
//        $strValue .= '<BODY  >';
        $strValue .= $this->getHeaderToString();
        $strValue .= $this->getCenterToString();
        $strValue .= $this->getFooterToString();
//        $strValue .= '</BODY>';
        return $strValue;
    }


}
?>
